package com.hejielife.observer;

public class ObserverA implements Observer {
	private int myState;// 需要和目标对象的state值保持一致.

	public void update(Subjecct subjecct) {
		myState = ((RealObserver) subjecct).getState();
	}

	public int getMyState() {
		return myState;
	}

}
